package cn.fsd.vo;

import cn.fsd.domain.Storeroom_commodity;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class StoreRoomCommodityBean extends Storeroom_commodity {

  String commodityName;
  String commodityCode;
  String storeroomName;
  String firstClassName;
  String secondClassName;
  /**
   * 缺货量
   */
  Integer outOfStock;
  /**
   * 进货量
   */
  Integer purchaseVolume;
  /**
   * 最大进货量
   */
  Integer maxPurchaseNum;
  /**
   * 计量单位
   */
  String measureUnit;
  Date date;
  String supplierId;
  String supplierName;


  public StoreRoomCommodityBean(Storeroom_commodity storeroomCommodity) {
    super(storeroomCommodity.getCommodity_id(), storeroomCommodity.getStoreroom_id(),
        storeroomCommodity.getTotal_num(), storeroomCommodity.getTransferred_num(),
        storeroomCommodity.getTransferable_num(), storeroomCommodity.getExchanged_num(),
        storeroomCommodity.getMax_num(),
        storeroomCommodity.getLow_num(), storeroomCommodity.getScheduled_num(),
        storeroomCommodity.getOut_of_stock(), storeroomCommodity.getExpected_exchange());
  }
}
